const fs = require('fs')

let rs = fs.createReadStream('sample.txt','utf-8')
let ws = fs.createWriteStream('copied.txt','utf-8')

const copyFile = ()=>{
    rs.pipe(ws)
}

module.exports = {
    copyFile : copyFile
}